package com.jzo2o.foundations.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.response.ServeCategoryResDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 区域服务Mapper
 */
@Mapper
public interface ServerMapper extends BaseMapper<Serve> {
    /**
     * 分页查询区域服务列表
     * @param regionId
     * @return
     */
    List<ServeResDTO> queryList(Long regionId);

    /**
     * 查询区域服务图标
     * @param regionId
     */
    List<ServeCategoryResDTO> findServeIconCategoryByRegionId(Long regionId);
}
